<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
	<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
    <title>完成订单</title>
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/iconfont/font_tuan.css{$Think.config.RESOURCE_VER}" onerror="_cdnFallback(this)">
	<if condition="$mallHue.mallHue eq '1'">
		<link href="{$Think.config.RESOURCEURL}wx_assets/css/product/product_order_success_blue.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
		<else/>
		<link href="{$Think.config.RESOURCEURL}wx_assets/css/product/product_order_success.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
	</if>
	<!-- <script src="http://sdk.talkingdata.com/app/h5/v1?appid=DE13C350F41F5DE78FEC51DB5DE730D1&vn=v2&vc=v2"></script> -->
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js{$Think.config.RESOURCE_VER}"></script>
	<script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js{$Think.config.RESOURCE_VER}"></script>
</head>
<style>
	.redbag
	{
		display: block;
		padding: 20px;
		position: relative;
		font-family: "微软雅黑";
	}
	.redbag .text
	{
		position: absolute;
		left: 0px;
		right: 0px;
		margin: 0 auto;
		color: white;
		z-index: 1;
		top: 50%;
		text-align: center;
		text-indent: -5px;
	}
	.redbag .text i
	{
		font-size: 17px;
		font-style: normal;
	}
	.redbag img
	{
		width: 100%;
	}
</style>
<body>
<div class="container">
	<div class="top">
		<div class="centerDiv">
			<div class="rightIcon">&#xe604;</div>
			<div class="paySuccess">
				<span>支付成功!</span>
				<span style="font-size:14px;line-height: 18px;">感谢在{$mall.name}购买商品</span>
			</div>
		</div>
	</div>

		<empty name="sendInfo">
			<div class="main">
				<img src="{$Think.config.RESOURCEURL}wx_assets/images/product/success_1.png{$Think.config.RESOURCE_VER}">
			</div>
			<elseif condition="$sendInfo['receiveType'] eq '1'"/>
			<a class="redbag" href="call.html?customerId={$customerId}&module=product&scope=1&method=receiveCoupon&params=%7B%22sendId%22:{$sendInfo.id}%7D">
				<p class="text">恭喜获得<i>{$sendInfo['copiesPrice'] | floatval}</i>元红包</p>
				<img src="{$sendInfo.config.shareMark}" alt="" />
			</a>
			<else/>
			<a class="redbag" href="call.html?customerId={$customerId}&module=product&method=couponIndex&params=%7B%22sendId%22:{$sendInfo.id}%7D">
				<p class="text">恭喜获得<i>{$sendInfo['copiesPrice'] | floatval}</i>元红包</p>
				<img src="{$sendInfo.config.shareMark}" alt="" />
			</a>
		</empty>


	<div class="bottom">
		<if condition="$browser eq '1'">
		<div><a href="javascript:;" onclick="toOrderList()">查看订单</a></div>
		<div><a href="{$mall.storeurl}">返回首页</a></div>
			<else/>
			<div style="float:inherit;margin:auto"><a href="{$mall.storeurl}">返回首页</a></div>
		</if>
	</div>
</div>
<script>
  function toOrderList () {
    $.util.cookie('orderListStatus', 1);
    location.href = '{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=product&method=getOrder&params=%7B%22tplid%22:1,%22type%22:%22buy,point%22%7D'
  }
	wx_share.init({
		"pkg":{
			"appId": '{$pkg.appId}',
			"timestamp": '{$pkg.timestamp}',
			"nonceStr": '{$pkg.nonceStr}',
			"signature": '{$pkg.signature}'
		},
		hide:1
	});
</script>
</body>
</html>
